#include "Agence.h"


ofstream& operator<<(ofstream& out, const Agence& A)
		{
			out<<A.idagence<<"\t"<<A.nomagence<<"\t"<<A.nomgestionnaire<<"\t"<<A.local;
	
			return out;
		}

ifstream& operator>>(ifstream& in, Agence& A)
		{
			in>>A.idagence>>A.nomagence>>A.nomgestionnaire>>A.local;
	
			return in;
		}

Agence::Agence()
		{
			//ctor
		}

Agence::Agence(long id,string no,string nomg,string loc)
		{
			idagence=id;
			nomagence=no;
			nomgestionnaire=nomg;
			local=loc;
		}
Agence::~Agence()
		{
			//dtor
		}


void Agence::afficher()
		{
			cout<<"ID:"<<"\t"<<idagence<<"\t"<<"Nom:"<<"\t"<<nomagence<<"\t"<<"NomGest:"<<nomgestionnaire<<"\t"<<"Localisation:"<<"\t"<<local<<endl;
		}
long Agence::getIdagence()
		{
			return idagence;
		}

string Agence::getNomagence()
		{
			return nomagence;
		}

string Agence::getNomgest()
		{
			return nomgestionnaire;
		}

string Agence::getLocal()
		{
			return local;
		}

void Agence::setId(long id)     
		{
			idagence=id;
		}

void Agence::setNom(string nom)
		{
			nomagence=nom;
		}
void Agence::setNomgest(string nom)
		{
			nomgestionnaire=nom;
		}
void Agence::setLocal(string loca)
		{
			local=loca;
		}

